import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/MainPage',
    name: 'MainPage',
    component: () => import('../views/mainPage/index.vue')
  },
  {
    path: '/GoodsDetail',
    name: 'GoodsDetail',
    component: () => import('../views/goods/GoodsDetail.vue')
  },
  {
    path: '/Cart',
    name: 'Cart',
    component: () => import('../views/shoppingCart/Cart.vue')
  },
  {
    path: '/Stars',
    name: 'Stars',
    component: () => import('../views/goods/Stars.vue')
  },
  {
    path: '/test0',
    name: 'test0',
    component: () => import('../views/test/test0.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
